package com.fh.controller;

import com.fh.model.Users;
import com.fh.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RequestMapping("user")
@RestController
public class UserCheckController {

    @Resource
    private UserService userService;

    @GetMapping("check")
  public Users queryUser(String username){
        return  userService.queryUser(username);
    }



}
